from django.urls import re_path

from . import consumer

websocket_urlpatterns = [
    re_path(r'ws/chat/(?P<room_name>[\w|\W]+)$', consumer.ChatConsumer.as_asgi()) # 使用 [\w|\W]+ 允许房间名包含空格
]
